#include "game.h"
#include "utils.h"

/* Important defines */
#define TITLE "GAME"
#define MAJOR_VERSION 0
#define MINOR_VERSION 1
#define DEBUG 1

/* Globals */
Sint32 width, height;

/* Prototype */
void help(char *helpstr);
void console(Sint32 argc, char *argv[]); 

Sint32 main(Sint32 argc, char *argv[]) {
    console(argc, argv); 

    char title[255]; 
    sprintf(title, "%s %d.%d", TITLE, MAJOR_VERSION, MINOR_VERSION);
    initSDL(width, height, SDL_SWSURFACE, title);
    runGame();
    return 0;
}

void console(Sint32 argc, char *argv[]) {
    char *use = " %s [options] \n\n"                       \
                " -w --width  NUM Set width for window\n"  \
                " -h --height NUM Set width for window\n\n";

    width  = 640;
    height = 480; 

    if(argc < 2) {
#if DEBUG        
        fprintf(stdout, "No options passed\n");
#endif        
    } else {
    }

#if DEBUG
     fprintf(stdout, "WIDTH:  %d\n", width);
     fprintf(stdout, "HEIGHT: %d\n", height);
#endif
}

